package org.boot.fast.properties;

import lombok.Data;
import org.boot.fast.util.spring.SpringUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "fast")
public class FastSystemProperties {
    /** fastBatis相关配置 **/
    private Batis batis = new Batis();
    @Data
    public static class Batis {
        private boolean camelCase;

        public Batis() {
            this.camelCase = true;
        }
    }

    /** 获取FastSystemProperties实例 **/
    @SuppressWarnings("unused")
    public static FastSystemProperties getProperties() {
        return SpringUtil.getBean(FastSystemProperties.class);
    }
}
